.article
  @extend $block
  margin: block-margin 0

.article-inner
  overflow: hidden

.article-meta
  clearfix()
  color: color-default
  padding: 10px article-padding 0
  a
    text-decoration: none
    line-height: 1.2em
    color: color-link
    &:hover
      text-decoration: underline

.article-top
  color: #ff844f
  font-weight: bold
  &:after
    content: "|"
    color: color-grey
    display: inline-block
    padding:0 10px

.article-date
  display: inline-block

.article-category,.article-views
  display: inline-block
  &:before
    content: "|"
    color: color-grey
    display: inline-block
    padding:0 10px

.article-header
  padding: article-padding article-padding 0
  h1
    padding-bottom: 10px
    border-bottom: 1px solid color-border;

.article-title
  text-decoration: none
  font-size: 1.5em
  font-weight: bold
  color: color-link;
  line-height: line-height-title
  transition: color 0.2s
  a&:hover
    color: color-link

.article-entry
  @extend $base-style
  clearfix()
  color: color-default
  padding: 0 article-padding
  p, table
    line-height: line-height
    margin: line-height 0
  h1, h2, h3, h4, h5, h6
    font-weight: bold
  h1, h2, h3, h4, h5, h6
    line-height: line-height-title
    margin: line-height-title 0
  a
    color: color-link
    text-decoration: none
    &:hover
      text-decoration: underline
  ul, ol, dl
    margin-top: line-height
    margin-bottom: line-height
  img, video
    max-width: 100%
    height: auto
    display: block
    margin: auto
  iframe
    border: none
  table
    width: 100%
    border-collapse: collapse
    border-spacing: 0
  th
    font-weight: bold
    border-bottom: 3px solid color-border
    padding-bottom: 0.5em
  td
    border-bottom: 1px solid color-border
    padding: 10px 0
  .pullquote
    text-align: left
    width: 45%
    margin: 0
    &.left
      margin-left: 0.5em
      margin-right: 1em
    &.right
      margin-right: 0.5em
      margin-left: 1em
  .caption
    color: color-grey
    display: block
    font-size: 0.9em
    margin-bottom: 0.5em
    position: relative
    text-align: left
    text-decoration: underline
    a
      float: right
  // http://webdesignerwall.com/tutorials/css-elastic-videos
  .video-container
    position: relative
    padding-top: (9 / 16 * 100)% // 16:9 ratio
    height: 0
    overflow: hidden
    iframe, object, embed
      position: absolute
      top: 0
      left: 0
      width: 100%
      height: 100%
      margin-top: 0

.article-more-link a
    display: inline-block
    font-size: 14px
    color: color-link
    text-decoration: none
    line-height: 1.2em
    padding: 6px 15px
    float: right
    &:after
      content: ">>"
      padding-left: 0.15em
    &:hover
      -webkit-box-shadow: 0 -1px 4px color-shadow inset
      box-shadow: 0 -1px 4px color-shadow inset

.article-footer
  clearfix()
  font-size: 0.85em
  line-height: line-height
  margin: 0 article-padding article-padding

.article-tag-wrap
  margin-top: 30px
  padding-bottom: 15px
  border-bottom: 1px solid color-border;
  .article-tag-list-item
    float: right

.article-tag-list-item
  float: left
  margin-right: 10px
  a
    color: color-grey
    text-decoration: none
    &:hover
      color: color-default

.article-tag-list-link
  &:before
    content: "#"

.article-comment-link
  @media mq-normal
    float: right
  @media mq-mobile
    &:before
      content: "|"
      color: color-grey
      display: inline-block
      padding:0 10px

#article-nav
  clearfix()
  position: relative
  margin: 10px 0 30px
  @media mq-normal
    &:before
      absolute-center(8px)
      content: ""
      border-radius: 50%
      background: color-border
      box-shadow: 0 1px 2px color-block-background

.article-nav-link-wrap
  text-decoration: none
  text-shadow: 0 1px color-block-background
  color: color-grey
  box-sizing: border-box
  margin-bottom: block-margin
  text-align: center
  display: block
  &:hover
    color: color-default
  @media mq-normal
    width: 50%
    margin-bottom: 0

#article-nav-newer
  @media mq-normal
    float: left
    text-align: right
    padding-right: 20px

#article-nav-older
  @media mq-normal
    float: right
    text-align: left
    padding-left: 20px

.article-nav-caption
  text-transform: uppercase
  letter-spacing: 2px
  color: color-border
  line-height: 1em
  font-weight: bold
  #article-nav-newer &
    margin-right: -2px

.article-nav-title
  font-size: 0.85em
  line-height: line-height
  margin-top: 0.5em

.article-gallery
  background: color-title
  position: relative

.article-gallery-photos
  position: relative
  overflow: hidden

.article-gallery-img
  display: none
  max-width: 100%
  &:first-child
    display: block
  &.loaded
    position: absolute
    display: block
  img
    display: block
    max-width: 100%
    margin: 0 auto

#copyright
  background: color-copyright

